﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Common
{
    /// <summary>
    /// 数据实体类的接口
    /// </summary>
    public interface IDataEntity
    {
        /// <summary>
        /// 对象是否为新增
        /// </summary>
        bool IsAdded
        {
            get;
        }

        /// <summary>
        /// 对象的值是否被改变
        /// </summary>
        bool IsChanged
        {
            get;
        }

        /// <summary>
        /// 对象是否已经被删除
        /// </summary>
        bool IsDeleted
        {
            get;
        }

        /// <summary>
        /// 设置对象标记
        /// </summary>
        void ResetMark();
    }
}
